package com.zf.zffencheng.exception;

import lombok.Getter;

/**
 * ClassName: Error_ <br/>
 * Description: 错误异常码 <br/>
 * date: 2021/5/8 16:54<br/>
 *
 * @author william <br/>
 */
@Getter
public enum Error_{
    /**
     * 数库异常
     */
    DATA_ERROR(9000, "数据异常"),
    DATA_EMPTY(9001, "数据不存在，请刷新重试"),
    AUTHORIZATION_FAIL(9002, "授权失败"),
    INSUFFICIENT_ACCESS(9003, "访问权限不足"),
    /**
     * 登录账号不存在
     */
    LOGIN_ACCOUNT_NOT_FIND(100, "登录账号错误"),
    ADMIN_NOT_EXIST(101, "账号不存在"),
    VERIFY_SMS_EMPTY(200, "验证码不存在"),
    VERIFY_SMS_NO_EQ(201, "验证码不正确"),
    SMS_UPPER_LIMIT(202, "短信消息发送上限"),


    USER_PASSWORD_ERROR(301, "用户密码错误"),
    VERIFICATION_CODE_ERROR(302, "验证码错误"),
    SMS_CANNOT_SEND(303, "验证码发送失败"),
    PAY_VERIFY_ERROR(304, "支付密码错误"),

    ACCOUNT_NOT_FUND(404, "账户不存在"),
    ;

    private Integer code;
    private String msg;

    Error_(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
